﻿using System;

namespace Fast.Extensions.DatabaseAccessor
{
    public abstract class Tenant
    {
        /// <summary>
        /// 租户Id
        /// </summary>
        public abstract int TenantId { get; set; }

        /// <summary>
        /// 租户名
        /// </summary>
        public abstract string Name { get; set; }

        /// <summary>
        /// 电子邮箱
        /// </summary>
        public abstract string Email { get; set; }

        /// <summary>
        /// 手机号码
        /// </summary>
        public abstract string PhoneNumber { get; set; }

        /// <summary>
        /// 是否启动
        /// </summary>
        public virtual bool Enabled { get; set; }

        /// <summary>
        /// 数据库链接字符串
        /// </summary>
        public abstract string ConnectionString { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public abstract string Remark { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public virtual DateTimeOffset CreatedTime { get; set; } = DateTimeOffset.UtcNow;
    }
}
